import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'

import Vant from 'vant'
import 'vant/lib/index.css'
// 引入全局样式
import './styles/index.less'
import './styles/icon.css'

import * as filter from '@/filter'

// 导入文章内容样式
import 'github-markdown-css'
// console.log(Object.keys(filter))

Object.keys(filter).forEach(item => {
  Vue.filter(item, filter[item])
})

// // 时间戳
// Vue.filter('relativeTime', time => {
//   return dayjs().to(dayjs(time))
// })

Vue.use(Vant)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
